package com.wy.panda.common.sign.constant;

/**
 * 请求相关配置
 * @author wangyuan
 * @since 2019年10月14日 下午3:35:21
 *
 */
public interface AuthConstants {

    /**
     * 设置到request里的签名的key值
     */
    String REQUEST_SIGN_KEY = "sign";
    /**
     * 设置到request里的签名方法的key值
     */
    String REQUEST_SIGN_METHOD_KEY = "sign_method";
    /**
     * 设置到request里的应用key值的key
     */
    String REQUEST_APP_KEY = "app_key";
    /**
     * 设置到request里的时间戳的key值
     */
    String REQUEST_TIMESTAMP_KEY = "timestamp";
    /**
     * 设置到request的parameter里的TOKEN的key值
     */
    String REQUEST_TOKEN_KEY = "token";
    
    /**
     * 设置到request的headers里的签名的key值
     */
    String REQUEST_HEADER_SIGN_KEY = "X-Auth-Sign";
    /**
     * 设置到request的headers里的签名方法的key值
     */
    String REQUEST_HEADER_SIGN_METHOD_KEY = "X-Auth-Sign-Method";
    /**
     * 设置到request的headers里的应用key值的key
     */
    String REQUEST_HEADER_APP_KEY = "X-Auth-App-Key";
    /**
     * 设置到request的headers里的时间戳的key值
     */
    String REQUEST_HEADER_TIMESTAMP_KEY = "X-Auth-Timestamp";
    /**
     * 设置到request的headers里的TOKEN的key值
     */
    String REQUEST_HEADER_TOKEN_KEY = "X-Auth-Token";
}
